<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
	<h1>密码修改成功！<span id="box"></span></h1>
	</center>
	<script>
		//5秒跳转页面
		var b=document.getElementById("box");
		b.innerHTML="5秒后重新登录";
		var time=5;
		//每隔一秒执行定时器
		var timer=setInterval(function(){
			if(time>0){
				time--;
				b.innerHTML=time+"秒后重新登录";
			}else{//终止定时器
				//alert("跳转页面");
				//open("http://www.baidu.com");
				parent.location.href="${pageContext.request.contextPath}/exit";
				timer.clearInterval();
			}
		},1000);
	</script>


</body>
</html>